<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <title>Bootstap输入框组案例</title>
</head>

<body>
    <div class="container">
        <div class="input-group input-group-lg">
            <span class="input-group-addon">@</span>
            <input type="text" class="form-control" placeholder="User">
        </div>
        <div class="input-group">
            <input type="text" class="form-control">
            <span class="input-group-addon">@example.com</span>
        </div>

        <div class="input-group input-group-xs">
            <span class="input-group-addon">$</span>
            <input type="text" class="form-control">
            <span class="input-group-addon">.00</span>
        </div>
        <div class="input-group input-group-xs">
            <span class="input-group-addon" id="basic-addon3">https://example.com/users/</span>
            <input type="text" class="form-control" aria-describedby="basic-addon3">
        </div>

        <div class="row">
            <div class="col-lg-6">
                <div class="input-group">
                    <!-- <span class="input-group-btn">
                         <input type="radio"> 
                        <button class="btn btn-default" type="button">Go!</button>
                    </span>
                    <input type="text" class="form-control"> -->
                    <div class="input-group-btn">
                        <button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
                            Action<span class="caret"></span>
                        </button>
                        <ul class="dropdown-menu" role="menu">
                            <li><a href="#">Hello</a></li>
                            <li><a href="#">Hello</a></li>
                            <li><a href="#">Hello</a></li>
                            <li><a href="#">Hello</a></li>
                            <li><a href="#">Hello</a></li>
                        </ul>
                    </div>
                    <input type="text" class="form-control">
                </div>
            </div>
        </div>
    </div>
    <script src="../js/jquery-1.12.4.js"></script>
    <script src="../js/bootstrap.min.js"></script>
</body>

</html>